Getting Properties of a Module without loading it?

Basically I want to grab a list of all the module prefixes in a DOORS db
 

ModName_ modRef
Module thisMod
string modName
string strPre
Item it
 
for it in current Project do{
    modName = fullName(it)
        modRef = module(modName)
        
        if(null modRef){
                continue
        }
        if((type modRef) != "Formal"){
                continue
        }
        thisMod = read(modName, false)
        strPre = thisMod."PreFix"
        //bla bla whatever else
 
        }
}

 


This code works but I want to store the prefix as strPre without opening the module as it lengthens the execution time greatly.

 


iannacones1 - Wed Dec 15 14:24:50 EST 2010

Re: Getting Properties of a Module without loading it?
SystemAdmin - Thu Dec 16 04:23:27 EST 2010

In DXL Help look in the section "ModuleProperties" and the included example program.

Re: Getting Properties of a Module without loading it?
iannacones1 - Thu Dec 16 09:05:22 EST 2010

Yep, there it is... not sure how I missed that, Thanks!